<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @mixin \think\Model
 */
class Student extends BaseModel
{
    //
    use SoftDelete;

    public function getStatusAttr($v){
        switch ($v) {
            case 0:
                $v = '禁用';
                break;
            case 1:
                $v = '解禁';
                break;
        }
        return $v;
    }

}
